require(["common", "coAjax", "hash_routie"], function(jSouper, coAjax, hash_routie) {
	hash_routie.on("bina", function() {
		coAjax.get(appConfig.user.bina.all, function(result) {
			App.set("$Cache.user_bina.all", result.result);
		});
	});
	App.set("$Event.user_bina.未申请兑换_to_申请兑换中", function(e, vm) {
		debugger
		coAjax.put(appConfig.user.bina.未申请兑换_to_申请兑换中,{
			bus_id:vm.get("bus_id")
		},function (result) {
			vm.set(result.result);
		});
	});
	App.set("$Event.user_bina.商家已付款_to_用户确认付款", function(e, vm) {
		debugger
		coAjax.put(appConfig.user.bina.商家已付款_to_用户确认付款,{
			bus_id:vm.get("bus_id")
		},function (result) {
			vm.set(result.result);
		});
	});
});